package com.wo.cloud.resource.controller;

import com.wo.cloud.log.annotation.Log;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/3/8 15:05
 * Description:
 */

@RestController
public class TestController {


    @Log(value="test")
    @PreAuthorize("hasAuthority('sys:add')")
    @GetMapping("/getResource")
    public String getResouce() {
        return "get resource from server";
    }
}
